package com.ls.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 物流
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
public class Logistic extends Model<Logistic> {
    private static final long serialVersionUID=1L;
    /**
     * 自增主键
     */
    @TableId(value = "logistic_id", type = IdType.AUTO)
    private Long logisticId;
    /**物流来源项目 乐信通或碰碰推*/
    private String logisticType;
    /**快递名称*/
    private String logisticName;
    /**物流运单号*/
    private String logisticNum;
    /**物流状态   1收件，2发件待发送短信通知，3发件发送短信通知成功，4到件，5派件，5签收，6签收待发短信，7签收发短信成功，8已完成*/
    private String logisticStatus;
    /**物流状态详细内容*/
    private String logisticContent;
    /**产品名称*/
    private String productName;
    /**用户id*/
    private Long customerId;
    /**用户名称*/
    private String nickname;
    /**用户手机号*/
    private String phone;
    /**省*/
    private String province;
    /**市*/
    private String city;
    /**区*/
    private String district;
    /**详细地址*/
    private String address;

    /**发件发送短信状态 0待发送 1 失败 2 发送中 3 成功*/
    private Integer sendSmsStatus;
    /**
     * 收件发送短信状态0待发送 1 失败 2 发送中 3 成功
     */
    private Integer receiveSmsStatus;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Override
    protected Serializable pkVal() {
        return this.logisticId;
    }
}
